
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>另类语法糖-Postfix Completion · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="section1.2.3.html" />
    
    
    <link rel="prev" href="section1.2.1.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    IDEA系列教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../understandbase.html">
            
                <a href="../understandbase.html">
            
                    
                     IDEA基本知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../advance/section1.1.1.html">
            
                <a href="../advance/section1.1.1.html">
            
                    
                     开发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../advance/section1.1.2.html">
            
                <a href="../advance/section1.1.2.html">
            
                    
                     最常用的快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../advance/section1.1.3.html">
            
                <a href="../advance/section1.1.3.html">
            
                    
                     搜索技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="../advance/section1.1.4.html">
            
                <a href="../advance/section1.1.4.html">
            
                    
                     同步设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.5" data-path="../advance/section1.1.5.html">
            
                <a href="../advance/section1.1.5.html">
            
                    
                     如何迅速掌握快捷键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../upIDEA.html">
            
                <a href="../upIDEA.html">
            
                    
                     IDEA进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="section1.2.1.html">
            
                <a href="section1.2.1.html">
            
                    
                     在IDEA上配置Github
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2.2" data-path="section1.2.2.html">
            
                <a href="section1.2.2.html">
            
                    
                    另类语法糖-Postfix Completion
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3" data-path="section1.2.3.html">
            
                <a href="section1.2.3.html">
            
                    
                    IDEA 插件实践谈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../chapter-GITBOOK/">
            
                <a href="../../chapter-GITBOOK/">
            
                    
                    GIT BOOK
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../chapter-GITBOOK/gitbookbase/">
            
                <a href="../../chapter-GITBOOK/gitbookbase/">
            
                    
                     GIT BOOK基本配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../../chapter-GITBOOK/gitbookbase/gitbook-base.html">
            
                <a href="../../chapter-GITBOOK/gitbookbase/gitbook-base.html">
            
                    
                    环境配置及本地调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../chapter-GITBOOK/gitbookadvance/">
            
                <a href="../../chapter-GITBOOK/gitbookadvance/">
            
                    
                     GIT BOOK同步GitHub
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../chapter-Grinder/">
            
                <a href="../../chapter-Grinder/">
            
                    
                    nGrinder 压测工具安装及使用 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../chapter-Grinder/nGrinderbase/">
            
                <a href="../../chapter-Grinder/nGrinderbase/">
            
                    
                     nGrinder 基本配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../../chapter-Grinder/nGrinderbase/section3.1.1.html">
            
                <a href="../../chapter-Grinder/nGrinderbase/section3.1.1.html">
            
                    
                     nGrinder安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../../chapter-Grinder/nGrinderbase/section3.1.2.html">
            
                <a href="../../chapter-Grinder/nGrinderbase/section3.1.2.html">
            
                    
                     nGrinder agent配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.3" data-path="../../chapter-Grinder/nGrinderbase/section3.1.3.html">
            
                <a href="../../chapter-Grinder/nGrinderbase/section3.1.3.html">
            
                    
                     nGrinder 压测任务预约
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../chapter-Grinder/nGrinderdevelop/">
            
                <a href="../../chapter-Grinder/nGrinderdevelop/">
            
                    
                     nGrinder 脚本开发
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../chapter-Groovy/">
            
                <a href="../../chapter-Groovy/">
            
                    
                    Groovy教程 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../../chapter-Groovy/groovyBase.html">
            
                <a href="../../chapter-Groovy/groovyBase.html">
            
                    
                    Groovy基础指南 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../../chapter-Groovy/gradleBase.html">
            
                <a href="../../chapter-Groovy/gradleBase.html">
            
                    
                    Gradle基础指南 
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../chapter-WEBTools/">
            
                <a href="../../chapter-WEBTools/">
            
                    
                    Web 开发常用工具 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../chapter-WEBTools/Postman.html">
            
                <a href="../../chapter-WEBTools/Postman.html">
            
                    
                    Postman实践谈 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../chapter-WEBTools/fiddler.html">
            
                <a href="../../chapter-WEBTools/fiddler.html">
            
                    
                    Fiddler的使用技巧 
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../chapter-tittleTattle/">
            
                <a href="../../chapter-tittleTattle/">
            
                    
                    一点思考 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../chapter-tittleTattle/InputOutput.html">
            
                <a href="../../chapter-tittleTattle/InputOutput.html">
            
                    
                     从函数的输入输出看编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../chapter-tittleTattle/MysqlAndRedis.html">
            
                <a href="../../chapter-tittleTattle/MysqlAndRedis.html">
            
                    
                     MySQL和Redis的有趣对话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../chapter-tittleTattle/whoCareMyCode.html">
            
                <a href="../../chapter-tittleTattle/whoCareMyCode.html">
            
                    
                     代码到底写给谁看
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../chapter-tittleTattle/iamengineer.html">
            
                <a href="../../chapter-tittleTattle/iamengineer.html">
            
                    
                     我是一个后端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../chapter-thinking/">
            
                <a href="../../chapter-thinking/">
            
                    
                    杂谈 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../chapter-thinking/personalization.html">
            
                <a href="../../chapter-thinking/personalization.html">
            
                    
                     人格化的产品
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../chapter-thinking/ifIWereALineOfCode.html">
            
                <a href="../../chapter-thinking/ifIWereALineOfCode.html">
            
                    
                     假如我是一行代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../chapter-thinking/saleYourIdea.html">
            
                <a href="../../chapter-thinking/saleYourIdea.html">
            
                    
                     卖掉你的想法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >另类语法糖-Postfix Completion</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x53E6;&#x7C7B;&#x8BED;&#x6CD5;&#x7CD6;-postfix-completion">&#x53E6;&#x7C7B;&#x8BED;&#x6CD5;&#x7CD6;-Postfix Completion</h1>
<h3 id="&#x524D;&#x8A00;">&#x524D;&#x8A00;</h3>
<blockquote>
<p>&#x8BED;&#x6CD5;&#x7CD6;(Syntactic sugar),&#x662F;&#x7531;Peter J. Landin(&#x548C;&#x56FE;&#x7075;&#x4E00;&#x6837;&#x7684;&#x5929;&#x624D;&#x4EBA;&#x7269;&#xFF0C;&#x662F;&#x4ED6;&#x6700;&#x5148;&#x53D1;&#x73B0;&#x4E86;Lambda&#x6F14;&#x7B97;&#xFF0C;&#x7531;&#x6B64;&#x800C;&#x521B;&#x7ACB;&#x4E86;&#x51FD;&#x6570;&#x5F0F;&#x7F16;&#x7A0B;)&#x521B;&#x9020;&#x7684;&#x4E00;&#x4E2A;&#x8BCD;&#x8BED;&#xFF0C;&#x5B83;&#x610F;&#x6307;&#x90A3;&#x4E9B;&#x6CA1;&#x6709;&#x7ED9;&#x8BA1;&#x7B97;&#x673A;&#x8BED;&#x8A00;&#x6DFB;&#x52A0;&#x65B0;&#x529F;&#x80FD;&#xFF0C;&#x800C;&#x53EA;&#x662F;&#x5BF9;&#x4EBA;&#x7C7B;&#x6765;&#x8BF4;&#x66F4;&#x201C;&#x751C;&#x871C;&#x201D;&#x7684;&#x8BED;&#x6CD5;&#x3002;&#x8BED;&#x6CD5;&#x7CD6;&#x5F80;&#x5F80;&#x7ED9;&#x7A0B;&#x5E8F;&#x5458;&#x63D0;&#x4F9B;&#x4E86;&#x66F4;&#x5B9E;&#x7528;&#x7684;&#x7F16;&#x7801;&#x65B9;&#x5F0F;&#xFF0C;&#x6709;&#x76CA;&#x4E8E;&#x66F4;&#x597D;&#x7684;&#x7F16;&#x7801;&#x98CE;&#x683C;&#xFF0C;&#x66F4;&#x6613;&#x8BFB;&#x3002;&#x4E0D;&#x8FC7;&#x5176;&#x5E76;&#x6CA1;&#x6709;&#x7ED9;&#x8BED;&#x8A00;&#x6DFB;&#x52A0;&#x4EC0;&#x4E48;&#x65B0;&#x4E1C;&#x897F;&#x3002;</p>
</blockquote>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;
&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;&#x8BED;&#x6CD5;&#x7CD6;&#x603B;&#x7ED3;&#x6765;&#x8BF4;&#x5C31;&#x662F;&#x5728;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x7684;&#x57FA;&#x672C;&#x8BED;&#x6CD5;&#x4E0A;&#x6DFB;&#x52A0;&#x7684;&#x4E00;&#x4E9B;&#x6709;&#x76CA;&#x4E8E;&#x63D0;&#x5347;&#x7A0B;&#x5E8F;&#x5458;&#x7F16;&#x7801;&#x6548;&#x7387;&#x7684;&#x8BED;&#x6CD5;&#xFF0C;&#x62FF;&#x963F;&#x798F;&#x6700;&#x719F;&#x6089;&#x7684;Java&#x6765;&#x770B;&#xFF0C;foreach&#x3001;&#x81EA;&#x52A8;&#x62C6;&#x7BB1;&#x88C5;&#x7BB1;&#x7B49;&#x90FD;&#x662F;&#x975E;&#x5E38;&#x5E38;&#x7528;&#x7684;&#x8BED;&#x6CD5;&#x7CD6;&#xFF0C;&#x8FD9;&#x4E9B;&#x8BED;&#x6CD5;&#x7CD6;&#x5728;&#x6211;&#x4EEC;&#x7F16;&#x7801;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#x63D0;&#x5347;&#x4E86;&#x975E;&#x5E38;&#x591A;&#x7684;&#x5E2E;&#x52A9;&#xFF0C;&#x4F46;&#x662F;&#xFF0C;&#x4E5F;&#x5E26;&#x5165;&#x4E86;&#x9690;&#x85CF;&#x7684;&#x98CE;&#x9669;&#xFF0C;&#x6B64;&#x4E8B;&#x6682;&#x4E14;&#x4E0D;&#x8868;&#x3002;&#x4E0B;&#x9762;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x6765;&#x770B;&#x770B;IDEA&#x91CC;&#x9762;&#x7684;&#x53E6;&#x7C7B;&#x8BED;&#x6CD5;&#x7CD6;&#x3002;</p>
<h3 id="idea&#x7684;postfix-completion">IDEA&#x7684;Postfix Completion</h3>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;IDEA&#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x975E;&#x5E38;&#x597D;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x90A3;&#x5C31;&#x662F;Postfix
Completion&#x3002;&#x8FD9;&#x4E2A;&#x529F;&#x80FD;&#x53EF;&#x4EE5;&#x8BF4;&#x662F;&#x80FD;&#x591F;&#x6781;&#x5927;&#x7684;&#x63D0;&#x5347;&#x6211;&#x4EEC;&#x7684;&#x7F16;&#x7801;&#x6548;&#x7387;&#xFF0C;ok&#xFF0C;&#x8BA9;&#x6211;&#x4EEC;&#x73B0;&#x5728;&#x53BB;&#x770B;&#x770B;&#x8FD9;&#x4E2A;&#x53E6;&#x7C7B;&#x8BED;&#x6CD5;&#x7CD6;&#x3002;</p>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x9996;&#x5148;&#xFF0C;&#x6765;&#x627E;&#x5230;IDEA&#x91CC;&#x9762;&#x5176;&#x5230;&#x5E95;&#x5728;&#x54EA;&#x91CC;&#xFF01;&#x6253;&#x5F00;&#x57FA;&#x672C;&#x8BBE;&#x7F6E;&#xFF0C;&#x641C;&#x7D22; <strong>Postfi</strong>
&#x5373;&#x53EF;&#x627E;&#x5230;&#x5BF9;&#x5E94;&#x7684;&#x8BBE;&#x7F6E;&#x9879;&#x3002;&#x53EF;&#x60DC;&#x7684;&#x662F;&#x76EE;&#x524D;&#x7684;PostfixCompletion&#x5E76;&#x4E0D;&#x652F;&#x6301;&#x6269;&#x5C55;&#xFF0C;&#x4F46;&#x662F;&#x5176;&#x539F;&#x751F;&#x7684;&#x529F;&#x80FD;&#x4E5F;&#x5DF2;&#x7ECF;&#x8DB3;&#x591F;&#x7684;&#x5F3A;&#x5927;&#x4E86;&#x3002;&#x4E0B;&#x9762;&#x7684;&#x56FE;&#x7247;&#x5219;&#x5C55;&#x793A;&#x4E86;Postfix &#x7684;&#x4E00;&#x4E2A;&#x5E38;&#x7528;&#x9879;&#x3002;&#x6211;&#x4EEC;&#x6765;&#x770B;&#x4E0B;&#x3002;</p>
<hr>
<center><img src="../images/idea-postfix.png"></center>

<hr>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x4E0A;&#x9762;&#x7684;&#x56FE;&#x7247;&#x5DF2;&#x7ECF;&#x5C55;&#x793A;&#x4E86;&#x5728;&#x4F7F;&#x7528;Postfix Completion&#x4E4B;&#x524D;&#x7684;&#x72B6;&#x6001;&#xFF0C;&#x4EE5;&#x53CA;&#x4F7F;&#x7528;Postfix Completion&#x4E4B;&#x540E;&#x7684;&#x72B6;&#x6001;&#x3002;&#x7B80;&#x800C;&#x8A00;&#x4E4B;&#xFF0C;&#x60F3;&#x5199;&#x4E00;&#x4E2A;for&#x5FAA;&#x73AF;&#xFF0C;&#x518D;&#x4E5F;&#x4E0D;&#x9700;&#x8981;&#x53BB;&#x4E00;&#x70B9;&#x70B9;&#x7684;&#x6572;&#x4E86;&#xFF0C;&#x8FC5;&#x901F;&#x7684;&#x81EA;&#x52A8;&#x5347;&#x660C;&#xFF0C;&#x53C2;&#x6570;&#x652F;&#x6301;&#x81EA;&#x5B9A;&#x4E49;&#x3002;&#x4F60;&#x77E5;&#x9053;&#x7684;&#x3002;</p>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x90A3;&#x4E48;&#x963F;&#x798F;&#x5176;&#x5B9E;&#x662F;&#x63A8;&#x8350;&#x628A;&#x8FD9;&#x4E9B;&#x5E38;&#x7528;&#x7684;&#x8FDB;&#x884C;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x8BB0;&#x5FC6;&#x7684;&#x3002;&#x53EF;&#x4EE5;&#x8BF4;&#x5341;&#x5206;&#x53D7;&#x7528;&#x554A;&#x3002;&#x5176;&#x5B9E;&#x8FD9;&#x91CC;&#x7684;&#x8FD9;&#x4E2A;&#x529F;&#x80FD;&#x5F88;&#x7C7B;&#x4F3C;Java&#x7684;&#x8BED;&#x6CD5;&#x7CD6;&#xFF0C;&#x4F46;&#x662F;&#x8BED;&#x6CD5;&#x7CD6;&#x662F;&#x5728;&#x7F16;&#x8BD1;&#x65F6;&#x5019;&#x8FDB;&#x884C;&#x7684;&#x8F6C;&#x6362;&#xFF0C;&#x800C;&#x8FD9;&#x91CC;&#x5728;source&#x7EA7;&#x522B;&#xFF0C;&#x4F46;&#x662F;&#x4E5F;&#x6CA1;&#x6709;&#x591A;&#x5C11;&#x7684;&#x5DEE;&#x8DDD;&#x5566;&#xFF01;</p>
<h3 id="&#x8BED;&#x6CD5;&#x7CD6;&#x7684;&#x90A3;&#x4E9B;&#x5751;">&#x8BED;&#x6CD5;&#x7CD6;&#x7684;&#x90A3;&#x4E9B;&#x5751;</h3>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x56E0;&#x4E3A;&#x8BED;&#x6CD5;&#x7CD6;&#x597D;&#x7528;&#xFF0C;&#x6240;&#x4EE5;&#x8BED;&#x6CD5;&#x7CD6;&#x5C31;&#x7ECF;&#x5E38;&#x88AB;&#x6EE5;&#x7528;&#x3002;&#x6BD4;&#x5982;&#x81EA;&#x52A8;&#x62C6;&#x7BB1;&#x88C5;&#x7BB1;&#x7684;&#x8BED;&#x6CD5;&#x7CD6;&#xFF0C;&#x5728;&#x67D0;&#x4E9B;&#x60C5;&#x51B5;&#x4E0B;&#x5E76;&#x4E0D;&#x4F1A;&#x53D1;&#x751F;&#x81EA;&#x52A8;&#x62C6;&#x7BB1;&#x88C5;&#x7BB1;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x6CA1;&#x6709;&#x53D1;&#x751F;&#x6570;&#x5B66;&#x8FD0;&#x7B97;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x5C31;&#x6BD4;&#x8F83;&#x5C34;&#x5C2C;&#x4E86;&#x3002;&#x8FD8;&#x6709;&#x90A3;&#x4E2A;&#x6700;&#x5E38;&#x7528;&#x7684;Integer&#x503C;&#x6BD4;&#x8F83;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
<pre><code class="lang-java">  <span class="hljs-meta">@Test</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">testInteger</span><span class="hljs-params">()</span></span>{
        Integer a = <span class="hljs-number">1</span>;
        Integer b = <span class="hljs-number">1</span>;
        Integer c = <span class="hljs-number">128</span>;
        Integer d = <span class="hljs-number">128</span>;
        System.out.println(a == b); <span class="hljs-comment">//true</span>
        System.out.println(c == d); <span class="hljs-comment">//false</span>
    }
</code></pre>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x800C;&#x51FA;&#x73B0;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#x7684;&#x539F;&#x56E0;&#x662F;Integer&#x628A;-128&#x5230;127&#x7684;&#x503C;&#x7F13;&#x5B58;&#x8D77;&#x6765;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x81EA;&#x52A8;&#x88C5;&#x7BB1;&#x7684;&#x8303;&#x56F4;&#x5728;&#x8FD9;&#x4E2A;&#x91CC;&#x9762;&#xFF0C;&#x90A3;&#x8FD4;&#x56DE;&#x7684;&#x5C31;&#x662F;&#x7F13;&#x5B58;&#x7684;&#x6570;&#x5B57;&#x3002;&#x5426;&#x5219;&#x76F4;&#x63A5;new&#x4E00;&#x4E2A;&#x3002;&#x4F60;&#x53EF;&#x80FD;&#x4F1A;&#x8BF4;&#xFF0C;&#x50CF;&#x6211;&#x8FD9;&#x4E48;&#x719F;&#x6089;Java&#x8BED;&#x6CD5;&#x7684;&#x540C;&#x5B66;&#x600E;&#x4E48;&#x53EF;&#x80FD;&#x4F1A;&#x5728;&#x8FD9;&#x79CD;&#x4F4E;&#x7EA7;&#x7684;&#x9519;&#x8BEF;&#x4E0A;&#x683D;&#x66F4;&#x5934;&#x3002;&#x597D;&#x5427;&#xFF0C;&#x7A0B;&#x5E8F;&#x5458;&#x96BE;&#x514D;&#x6709;&#x5934;&#x6655;&#x8111;&#x80C0;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x90A3;&#x4E2A;&#x65F6;&#x5019;&#xFF0C;&#x53EF;&#x5C31;&#x4E0D;&#x662F;&#x4F60;&#x8BF4;&#x4E86;&#x7B97;&#x3002;&#x6240;&#x4EE5;&#xFF0C;&#x517B;&#x6210;&#x4E00;&#x4E2A;&#x597D;&#x7684;&#x4E60;&#x60EF;&#xFF0C;&#x4F7F;&#x7528;intValue&#xFF08;&#xFF09;&#x65B9;&#x6CD5;&#x663E;&#x5F0F;&#x7684;&#x8F6C;&#x6362;&#x5427;&#x3002;&#x8FD9;&#x624D;&#x662F;&#x771F;&#x7684;&#x738B;&#x9053;&#x554A;&#x3002;</p>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x5F53;&#x7136;&#xFF0C;&#x8FD8;&#x6709;&#x5F88;&#x591A;&#x5C0F;&#x5751;&#xFF0C;&#x9700;&#x8981;&#x5404;&#x4F4D;&#x7A0B;&#x5E8F;&#x5458;&#x7528;&#x5FC3;&#x7504;&#x522B;&#x3002;</p>
<h3 id="&#x603B;&#x7ED3;">&#x603B;&#x7ED3;</h3>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x6B64;&#x6587;&#x8FD8;&#x662F;&#x4E3B;&#x8981;&#x60F3;&#x8BF4;IDEA&#x8FD9;&#x4E2A;&#x725B;&#x903C;&#x7684;&#x529F;&#x80FD;&#xFF0C;&#x5927;&#x5927;&#x7684;&#x589E;&#x5F3A;&#x4F60;&#x7684;&#x4E2A;&#x4EBA;&#x6218;&#x6597;&#x529B;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="section1.2.1.html" class="navigation navigation-prev " aria-label="Previous page:  在IDEA上配置Github">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="section1.2.3.html" class="navigation navigation-next " aria-label="Next page: IDEA 插件实践谈">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"另类语法糖-Postfix Completion","level":"1.2.2.2","depth":3,"next":{"title":"IDEA 插件实践谈","level":"1.2.2.3","depth":3,"path":"chapter-IDEA/upIDEA/section1.2.3.md","ref":"chapter-IDEA/upIDEA/section1.2.3.md","articles":[]},"previous":{"title":" 在IDEA上配置Github","level":"1.2.2.1","depth":3,"path":"chapter-IDEA/upIDEA/section1.2.1.md","ref":"chapter-IDEA/upIDEA/section1.2.1.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter-IDEA/upIDEA/section1.2.2.md","mtime":"2018-12-17T07:47:58.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-17T09:36:56.241Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

